export const routes = [
    {
        path: '/',
        // component: () => import('@/components/Home.vue'),
        meta: { title: '首页' },
        children:[
            {
                path:'user',
                component:()=>import('@/components/User.vue')
            },
            {
                path:'role',
                component:()=>import('@/components/Role.vue')
            },
            {
                path:'question',
                component:()=>import('@/components/Question.vue')
            },
        ]
    },
    {
        path: '/user/:id',
        component: () => import('@/components/User.vue')
    },
    { 
        path: '/:pathMatch(.*)*', 
        name: 'NotFound', 
        component: () => import('@/components/NotFound.vue') 
    },
]